import Vue from 'vue'
import axios from 'axios';
import VueAxios from 'vue-axios';
Vue.use(VueAxios, axios);
axios.defaults.baseURL = 'https://www.liulongbin.top:8888/api/private/v1'
//添加请求拦截器
axios.interceptors.request.use(config => {
    //为请求头添加token字段
    config.headers.Authorization = sessionStorage.token;
    return config;
})
